We discuss the laser theory for a single-mode laser with nonlinear gain. We focus in particular on a micromaser which is pumped with a dilute beam of excited atoms crossing the laser cavity. In the weak-coupling regime, an expansion in the coupling strength is developed that preserves the Lindblad form of the master equation, securing the positivity of the density matrix. This expansion breaks rapidly down above threshold. This can be improved with an alternative approach, not restricted to weak coupling: the Lindblad operators are expanded in orthogonal polynomials adapted to the probability distribution for the atom-laser interaction time. Results for the photon statistics and the laser linewidth illustrate the theory.